resizing bug on mobile devices