Stars and gas are clumped in these dense regions due to gravitational attraction towards the dense material, though their location in the spiral arm may not be permanent.
In these regions, gravity causes stars and gas to congregate, drawn to the denser material, though their location along the spiral arm might not be fixed or certain.