It is Makruh (disliked) to offer Salah between barriers such as columns and walls unless it is necessary, e.g. The place is narrow; in this case it becomes permissible and no longer Makruh. Moreover, it is permissible for
women to pray behind men, if they are in the same Masjid (mosque) or the same house and are able to hear the Imam. (Part No. 6; Page No. 342) May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.