Ram pressure stripping in high-density environments