Zend certified PHP/Magento developer

How to move dashed stroke along path in PS 2022

I have a dashed line and want another dashed line to align with the gaps and dashes:

example picture

Even when setting the dash length and gap size perfectly they don’t align.

Is there a way to move the dashed line to align along the path?