changes hours input to range slider