OK, make a 'U" shaped piece of steel, kind of like an old horseshoe type magnet. And place one of the magnets on the inside of each leg of the 'U'. After placing the first magnet you'll probably need to put a piece thin wood or plastic (paint stick?) on it to allow the second one to be put in.
Kind of like this, where the red is the magnet;
ll ll
l_ l
Kind of like this, where the red is the magnet;
ll ll
l_ l