Slices the array along the specified axis.
a slice of the array along the specified axis
the starting index
the ending index
the step size
the axis to slice along