To prevent the egg from spreading too much, make sure the pan is preheated and the butter is evenly distributed. Gently slide the cracked egg into the skillet and cook them one at a time. If the edges start to spread, you can use a spatula to push them back towards the center.