resize on mobile bug fix