Complex sentence: The main shrine is for Tamil Thai, and on either side of the main shrine, there are smaller shrines for Agastyar and Tholkappiyar.
Split into simpler sentences: The main shrine is for Tamil Thai. On either side of the idol of Tamil Thai, there are smaller idols of Agastyar and Tholkappiyar.