Quoting peter geary
i had the same idea but it dosent work because the attachments just slide off of the rail
I've updated it to address that problem but another solution is to use one of those 2x1 hinge bricks with the 2x2 hinge plates ontop which get stuck in the plates on the bottom rail.