A combination of parallelogram mechanisms and gears.
Input: orange angular lever. Its cylinder is not shown.
By similar connecting of bars the stretch can be very long.
At contraction position the mechanism does not occupy any portion of the passage.