Snacks help to distribute your calories more equally throughout the day. Ideally, they should contain all macro nutrients. They can also help to fill "gaps" in your macro distribution. If you see that you are lacking a certain macro nutrient in your day, you can simply eat the suitable amount as an additional snack.