There are a number of options here, and you're going to have to experiment to find what works.
First things first.... there is no "best" way. There is simply "best for you". Someone might have a lot of success eating 6 meals a day... but you might find it easier to just have 3 solid meals and forgo any type of snacking whatsoever.
I've seen some people have 8 smalls meals. I've seen some who have only 3. I've seen some people who fast until the afternoon and then eat sensibly for a few hours, but there's no eating for them at other times.
There are so many options! So many choices that the only right method is the one that is going to keep you satisfied and healthy.
If it's your afternoon snacks that are the trouble. Cut them out completely.
Have lunch. Don't allow snacks. Then have a solid dinner.
It's about calories in vs. calories out. Find the right method of that for you, and you'll be able to better control your food.