Returns a specified number of contiguous rows or columns from the start or end of an array