setting up slider for z position control in viewer