Resize mainPage