Gotcha,
When you change slicing mode, your camera focal point does not change.
You only need to change the camera position.
It should be newCameraPosition = focalPoint + distance * newSlicingNormal
. where distance could be the one before changing the slicing mode: distance = cameraPosition - focalPoint
.