I buy "business card" magnets and cut them.
They are great because:
(1) they are very thin (I found the regular circle ones I found were too thick and caused my pans to come slightly above the tray which drove me crazy)
and
(2) they already have an adhesive back, just remove the paper backing (after cutting it) and stick it to your pan.