If you're going to use magnets I would recommend using these rather than that bar setup.

http://www.rare-earth-magnets.com/p-...Fe5aMgodhUYARw

These will allow you to make your upper barrel rack just as you would for any gun cabinet, then just drill a shallow hole for these magnets to sit in flush with the surface and then cover with felt (optional).