During this virus pandemic, they practising 5 daily prayer with 1 meter gap between each other in the lines, if I pray with them at the masjid the way they pray with a gap, recite everything on my own and just follow the movement of imam at the masjid, is it fine?

It is OK.