Resize main container only if sidebar present