I did some doodling on how the x-axis could work. Then I converted it to a tinkercad sketch, which helps to sweat out some of the issues.

pattern