How do I remove periodicity in one direction of the structure

When I build this model, it always has periodic structure in the C direction, and I want to eliminate the periodicity in the C direction