In a variable performance face mask
During expiratory pause, there is no tidal  flow from the patient, oxygen accumulates in the mask, thereby washing out carbon dioxide.
High patient inspiratory flow rate reduces oxygen concentration
Oxygen concentration decreases during an expiratory pause
Carbon dioxide concentration decreases during an expiratory pause
Side holes allow venting of expired gases and entrainment of air.