Update slider.js

hack to make sure sliders are destroyed correctly