changed simple-slider logic