Update slide.js

small fix