window resize on scroll issue