Slider error fix and media queries

RoyalSlider from homepage didn’t work when the page was loaded for the
first time.