setting the sizes of the panels properly