Designed for H0 scale model railroad
To keep the distance between rails the same before fixing them, use the distance holder. It is made in two parts - the slider and the screw holder. You need additionally a counter sunk bolt and a wing nut, both M5.
May need a little rasping to fit between the rails, depending on the accuracy of your print.
Design was made with FreeCAD - files also attached