fixed scroll speed of smooth scrolling and added window width if statement to it