Remove window.load() for setHeight and setSlider.