as salam alaikum
there are traditions in both Shi'i and Sunni books about straighten the lines during Jama'ah and do not leave gaps. However this does not mean that believers should strictly touch feet and shoulders one another. Rather it means to keep close one another according to common understanding in a way that is not loose. Hanafi school holds the same view and their scholars have discussed how Sunni ahadith and literature should not be interpreted as implying the necessity of touching each other's feet and shoulders.
With prayers for your success.