slider.js modified