Change the function setValueSlider to be set with the start and end second