Update slider.js

fixes touch event