Update slider.js

fixes touch event
Merge pull request #1 from neugartf/patch-1

Update slider.js