Use value of the slider as the current value