The person is making a casing for an elastic waistband by folding the fabric and pinning it together.