Update slider.js

removed spaces