Keep Toggle View through Slider Steps

I have a 3-D model that has many layers that I toggle on and off from the legends view. There is also a slider to view different groupings of the model layers. The views in each of these slider steps in predetermined in the code, but i want to have the next step keep what ever the previous step view had. Ex in the pictures below:

The first view in β€œStep 1” of the slider has the β€œ7-1” layer toggled on in the view, but the default is for it to be off, which i want. Then when i go to β€œStep 2” the β€œ7-1” goes back to off. How do i keep it on?