Prepare all the necessary ingredients. Peel the potatoes and rinse. Peel the garlic heads. Wash the parsley and chop finely.
Grate the potatoes on a fine grater. Place grated potatoes, eggs, herbs and salt and pepper to taste in a deep container. Stir.
For the sauce: mince the garlic. Add sour cream and chopped parsley to the garlic. Stir.
Place a tablespoon of the mixture into a heated frying pan with oil and fry on both sides until golden brown. Pour the sauce over the prepared potato pancakes.
Take the remaining butter and mix it with powdered sugar and vanilla sugar. Beat the resulting mixture with a mixer. Transfer the resulting cream into a pastry bag. Place in the refrigerator for 15 minutes.
Divide the dough into 2 halves and roll out on cling film into an even layer. Leave in the refrigerator for 30 minutes.
Using a glass, squeeze out round pieces from the resulting dough. Place on baking paper. Place in an oven preheated to 180 degrees for 10 minutes. After baking, spread cream on one cookie and cover with another. Do this with all the other cookies.
To serve, garnish the dish with tomato and fresh herbs.