updates dimensions of #grid-container upon window resize