Configuring vtkMRMLSliceNode

I’m currently trying to configure the vrkMRML slice node so that I can create a Slicer viewer (for example the coronal slice) that is able to be switched between two image datasets (say CT and MR images). I would like to develop a slider that helps move between these two files. However, since I have just started Slicer development, I am unsure how to approach this issue.

Should I write a separate Python script or would it be possible to configure the existing vrkMRML file to add new custom layouts?

Any insight would be helpful, thank you!

What you describe sounds like putting one image in the foreground and one in the background and crossfading? if so you want to look at the vtkMRMLSliceCompositeNode and this example.

https://www.slicer.org/wiki/Documentation/4.8/Modules/CompareVolumes