Input: pink shaft.
Grey spindle is connected to the input via an Oldham coupling.
An eccentric groove cam (in orange) is fixed to yellow worm wheel makes the spindle bearing slide horizontally.
Adjust angular position of the cam and the wheel by the red positioning pin to get various lengths of the mortise.
This mechanism has not been verified in practice.