How to Flatten Segmented Layers

How to Flatten Segmented Layers