slice a 3d object along the x and y plane