You can get the "cups" for the magnets and they will hold better. You could glue those in or even screw them on, some have holes in them for this purpose.

Rare-Earth Circular Magnets

Cups, Discs and Washers for Rare-Earth Magnets
http://www.leevalley.com/hardware/pa...urrency=1&SID=