Notmally if you want to build a telescopic transmission with double u-joint, minimum length is 8 studs if you use 3L joints. To avoid this I have desinged a very similar solution but with only 6 studs long. It is very simple and strong.
This is the standard double u-joint transmission.
Some more pictures:
A little video show it.