Fix bug with removal of to-build class in slides.js