resize on overlfow event