A layer of 0.2 mm is fine. Magnet 6x3 mm.UPD: added a version with the magnet on the bottom (base). It's not perfect, but it works.
The author remixed this model.
A magnet was added to hold and keep it on the metal surface.