As the gas bubbles through it, the water is displaced but the gas is contained.
(the gas; bubbles; through it) (the water; is displaced; ) (the gas; is contained; )
the gas the water the gas
bubbles is displaced is contained
through it