Place sliced tomatoes and onions in baking dish in overlapping rows like tilted books on a shelf. Add shallots over top. Drizzle with olive oil and spices. Cover with cheese. Salt and pepper to preference. Cook at 425 degrees for 45 minutes.