Let cream cheese and goat cheese soften at room temperature. Mix cheeses together with minced garlic. Line a casserole dish with plastic wrap. Put 1/3 of the cheese mixture in the dish, spreading it evenly to the sides. Next, layer ingredients in the following order: the sun-dried tomatoes, 1/3 cheese mixture, pesto, and remaining cheese in the same manner. Cover with plastic wrap and chill for at least 1 hour.
To serve, turn upside down on a platter. Serve with crackers.