can we make this more general so it's not limited to 2d arrays? maybe
`return vol[tuple(slice(i, j+1) for i, j in zip(mins, maxs))]`