Refrigerator magnet is available in large sheets. The figure at the far left shows a scrap piece (white side) hanging from a piece that was glued onto a sanding block. The picture just to its right shows two identical sanding blocks with refrigerator magnet glued in place.
If you slide the blocks along the long axis, they "chatter." If you slide them side-to-side, they don't chatter.
If you put the magnets cross-wise (figure lower left), they do not attract one another.
What's going on?
Magnets all have a north pole and a south pole. Refrigerator magnets are made as strips of magnets as shown below, with north poles shown in red, and south poles in white.
With those facts in mind, you can figure out all of the odd behavior.
The STEM project at Pueblo Weisbrod Aircraft Museum
Pueblo Historical Aircraft Society
31001 Magnuson Ave. - Pueblo, Co. 81001