Magnet pull strength is largely dependent on size and proximity…
3mm cubes work really well.
I use them in lots of small boxes:
You can modulate the pull by changing the inset depth, magnets are great for stuff like this.