Function to interact with sliders works perfectly in the sandbox