setting max height on window resize