Fixing out of bounds error in Viewer4d

This happes when the slider widget in Viewer4D moves to the very right.

Slider widget considers valmax as a closed interval boundary by default. 
Possible to also use closedmax=False instead but this could cause same issue when rounding the index instead of flooring.