Because it connected to the tidal River Trent, ships which were longer than this could pass through when the river was level with the canal, and both sets of gates could be opened, but the width was restricted to about 21 feet .