Update slider.js
Merge pull request #6 from EvenKing/patch-4

Update slider.js