Stacking sliding boxes

Hello everyone,

I am trying to do some sliding boxes that would stack at the side of the first box but instead the boxes just slide the lenght of one box and its passing a little bit than it should. Anyone know how to do this and why is it passing the lenght of the first box?
Sliding box daught.gh (11.0 KB)

please internalise the geometries in the GH file

sorry man, here it is, but is just a regular box
Sliding box daught.gh (14.5 KB)

this is a maybe an easier way?

Sliding box daught_inno.gh (19.5 KB)

way easier :rofl: