Get selected slices of an array along mentioned axis