the ships threw open their hatches to receive this bounty and slings of cargo were hoisted out of boats alongside , swung inboard and lowered into holds , where men packed each sack into the smallest space , sweating in dusty gloom and often climbing out to breathe clean air and douse themselves with buckets of seawater .