The normal way to solve this is to have a home switch on each side. Then home the machine after power up to sync the motors. You might have to home the sides separately. Bring home until one motor hits the home limit, hold that motor, then bring the other motor into its home limit. You may have to write a software routine to do this.