If you were in a helicopter over a traffic jam on the freeway, it would look like the jam is a permanent fixture of the traffic. But in reality, cars leave the jam at the same rate as cars entering it. So while the jam itself stays put, the cars making it up always change. So it is with spiral arms: they are places where the matter in the galaxy is compressed, but stars enter the jam and stars leave. The arm looks permanent, but over time its resident stars, gas, and dust change