resizing the main container.