auto resize on height change