Finely chop onions and garlic and fry in oil. Add the diced pumpkin pulp, parmesan and the herbs, season with salt and pepper and sauté everything for approx. 5 minutes until soft. Layer the pumpkin mixture, sliced tomatoes and mozzarella slices alternately at an angle in a greased baking dish.