Question: density of a gas can change?
Answer: Because the molecules are in motion, a gas will expand to fill the container. Since density is defined to be the mass divided by the volume, density depends directly on the size of the container in which a fixed mass of gas is confined.