visualize axial,coronal and sagittal slices using "imageSlicing.cxx'' example

Hi guys, I’m very new to VTK. What i want to do is use the ‘imageSlicing’ example and adapt it at my needs:
I have to do what the example does (cut a 3D volume in slices), but also i have to show the 3 different slices in a window and be able to ‘‘scroll’’ and display the different ‘‘depths’’ of the volume for the 3 slices at the same time.
I’ve tried adapting the code to my needs, but what i always get are 2 static images and 1 that im able to ‘scroll’ with the mouse motion…but only 1! Do u know how could i change this code/ what i have to do?
Thanks in advance!