Update size of panels in main panel