re-worked on slide.js