Berry phase in Tavis-Cummings model