create slider.js

this file contains all the elements belonging to slider tag.