trying to fix problems with initial resize on mobile devices