corrected javascript and scss to make slide controls work