Fix callback when dragging the slider