resize mainpage