Updated handling of the slider values