Slider now hides if browser window narrowed; slider function now only loads once script has been loaded