window resize, and navBar collapse