There is a small magnet at the tip of the heart. Thus, it can be closed tightly.
 
A piece of felt is put inside the bottom of the box.