main page resize