proper grid expansion on window resize