fixed resizing bug on mobile