re-organized code
Changes to slider, added semicolons