slice function

Subset rows in ir objects using their positions