Rewrote the slider events