moving Slider.js into the views directory and updating dependecy references