To prevent the beans from spilling out, leave a good amount of room around the edges of your tortilla, and don't press the tortilla too thin. But, don't worry too much if some beans spill out because they will still taste great!