Simplified the logic for going to a location on the thumbnail slider.
Synced to viewer code.