Slider with calculated result not working on mobile