It is done after sewing. Here the folded and already sewn sheets are made to tighten the fold that is air free to ensure that the front and back have the same thickness.