What is the version of the following sentence with correct punctuation?

Fold the sides forming equal segments
Fold the sides, forming equal segments.