advanced connections

I would like to make a telescopic guide element, but I am wondering how to connect the elements so that they work in motion like a guide.