-
1
Put oven rack in middle position and preheat oven to 425F.
-
2
Brush a shallow baking pan (1/2 to 1 inch deep) with 2 tablespoons oil.
-
3
Arrange tomato slices in 1 layer in baking pan and sprinkle with a scant 1/2 teaspoon salt and 1/4 teaspoon pepper.
-
4
Roast tomatoes until just tender (not falling apart), about 20 minutes.
-
5
While tomatoes roast, cut potatoes crosswise into 1/4-inch-thick slices and toss with 5 tablespoons oil in a large bowl.
-
6
Remove tomatoes from oven and put oven racks in upper and lower thirds of oven.
-
7
Arrange potato slices in 1 layer in 2 shallow baking pans (1/2 to 1 inch deep) and sprinkle each pan with a scant 1/2 teaspoon salt and 1/4 teaspoon pepper.
-
8
Roast potatoes, switching position of pans halfway through roasting, until tender, about 16 minutes total.
-
9
While potatoes roast, mince garlic and mash to a paste with a pinch of salt using a large heavy knife.
-
10
Transfer paste to a bowl and stir in bread crumbs, basil, thyme, remaining 3 tablespoons oil, remaining 1/4 teaspoon salt, and remaining 1/4 teaspoon pepper.
-
11
Preheat broiler.
-
12
Arrange tomatoes and potatoes in 1 layer in gratin dish, alternating slices and overlapping them, and spoon any juices from tomatoes into dish.
-
13
Sprinkle top with bread crumbs and broil 5 to 7 inches from heat, checking frequently after 1 minute (crumbs can brown quickly), until golden brown, about 2 minutes.
-
14
Serve warm or at room temperature.