Hammer nut: at any position, also afterwards
You drop the nut into the slot from the front, along the length of the slot. When you tighten the bolt, the hammer head turns crosswise and clamps behind the edges of the slot.
Slot 6: M3 to M5. Slot 8: M3 to M6. Slot 10: M3 to M8, and an M8 version with a high collar.