Update sortAndSlide.js