Is it permissible to stand on the right of the imaam for the funeral prayer?

Praise be to Allaah. 

If it is necessary, it is OK to stand on his right or his left, although
the Sunnah is to pray behind the imaam. But if the place is crowded,
it is OK.