this is my version of a segmentary holder for laboratory test leads, based on the din-rail system. You can also use it for other cables of course. In this version the gaps between the elements is 4 millimeters. So if you have thicker or thinner cables, you can modify it with the *.step-files and freecad or similar. I've also designed a terminator for the end of the line.
Maybe it's necessary to use end clamps like Wago 249-117