auto height script on resize window