Imagine you are look at a CD from the center, you would see matter in the middle but not above nor below. It is a little bit the same thing except the solar system and our Earth are not located in the center of the galaxy but somewhere close to the edge.