make slider change smoother