Here is a set of stackable trays that I designed to hold long reach allen and torx sockets, along with an array of shorter sockets. The top tray slot into the pegs on the bottom tray. The bottom tray has an array of 12x3mm holes for press fitting 12x3mm magnets into it. As you can see in the pictures, that is all the magnets I needed to keep the tray from moving in my box, but I have soft-close drawers and decent liners.
Note: I have 2 different brands of sockets in the upright slots and they both fit differently in the holes. Holes and slots were all designed around Craftsman sockets.