Trimming a section and stitching a section