The imam stands in front, in the middle of the row.
The should not be a gap of more than 2 rows between the imam and the followers.
If there is zahmah (severe crowd) then the followers can stand in line with the imam but should make sure that they don't stand in front of him.
(source:noorul idhah, quduri)
Imam
Currently Imam Khamenei is the leader of Shia Muslims.
shia Muslims
An Imam.
in Shia Islam Imam Khomeini and today Imam Khamenei
Shia just means the followers of imam ali ibn abu talib (as)
An imam is the man who leads prayers in a mosque. His office is where does his work, such as writing sermons.
The Imam
prophet Muhammad (PBUH) after him Imam Ali (sa) after him Imam Hasan (sa) after him Imam Hssain (sa) and then 8 Imam from children of Imam Hasan (sa) totally 12 Imam. currently Imam Mahdi who is dissappeared but some especial Shia Muslims meet him and he guids them. recently Imam Khomeini was leader of Iran Islamic revolution who was main shia leader in world. and after his death recently now Imam Khamenei is leader of Shia Islam in Iran and also shia countries. other local shia leaders exist in shia countries but Imam Khamanei is main leader in shia world.
Using it is not obligatoy. but shia use it mostly after dua.
To lead prayers and educate the followers of the teachings in the Koran
the man who leads prayers is called 'Imam' that person can be randomly picked out of a crowd who knows the prayers word