It shall be unlawful to chain together or to confine together in the same room or compartment male and female convicts.