Zigzag-shaped rock layers formation