Assume G is the height of the cube.
Then, RB are the 2D slice.
Increasing G, while flipping the slice so the resulted image would look with smooth transitions.