function added

slide.js file