Initialize slider at correct time