Fixed resizing when scrolled down or right