Added looping to the time-slider