VTK JS Image Slicing basics

I’m switching between different slicing modes (X, Y, Z) within the image-slicing.js to view the volume from different planes (axial, sagittal or coronal).

If I change mapper.setSlicingMode(SlicingMode.Z) to mapper.setSlicingMode(SlicingMode.Y) or mapper.setSlicingMode(SlicingMode.X), the renderWindow just turns black. I know that I have to update the camera properties, just not sure which values to set for each slicing mode.