I have a USB hub that has a large number of wires that are coming into it. This is HDMI cables, VGA, USB cables, power and Ethernet. The USB hub connects to laptop using a USB-C. This USB-C cable is actually very short. I need to be able to connect this cable to laptops of different sizes that I have. This includes laptops used for personel use and also work.
In order to keep the desk area neat, I am going to mount the USB hub onto the back of the desk. Therefore, the USB hub shall be out of sight. Its USB-C cable will stick out on the right side of the desk, near the floor. I can place the laptop there and connect it to this hub.
I have decided that to prevent damage to the USB hub, I will not fix it at a single location. This means that it will be easy to connect it to different laptops of varying sizes. I believe that I need something like this to make this work:
The USB hub shall be mounted onto the piece of wood "confined to the rails". This gives it a single degree of freedom, to be able to move vertically. The USB hub is like 4cm while the rod in the diagram is about 40 cm. Maybe I don't need to cover the entire 40 cm.
Now my question is, what exactly do I look for in the market that will form the rails and the top and bottom end? I can't use the rails sold for use with drawers since they are too long and the center piece in this case is actually like 4 cm high. Ideally there could be a thin metal rod that is serves as the rail but I don't know. What do you think?
EDIT:
Here is image of the type of USB hub I am referring to: