As stated in several sources, it's supposed that in every galaxy there is a black hole in the middle.

My question is, why do these black holes in the middle of galaxies not suck up all the surrounding matter in the galaxy?

You shouldn't think of black holes as "sucking things in". Black holes interact with matter through gravity, just the same as any other object. Think of our Solar System. All the planets orbit around the sun because it has a lot of mass. Since the planets have some lateral motion (they're not moving directly towards or away from the sun), they circle around it. This is known as conservation of angular momentum.

When talking about gravity, all that matters is the mass of the objects involved. It doesn't really matter what kind of object it is*. If you were to replace the sun with a black hole that had the same mass as our sun, the planets would continue on the exact same orbits as before.

Now, the black holes at the centers of most spiral galaxies do accumulate mass. Some of these black holes have accretion disks around them. These are swirling disks of gas and dust that is slowly falling into the black hole. These gas and dust particles lose their angular momentum through interactions with gas and dust nearby and by radiating energy as heat. Some of these black holes have very large accretion disks, and can generate huge amounts of electromagnetic radiation. These are known as active galactic nuclei.

So, long story short, black holes don't "suck". They just interact with things gravitationally. Stars, gas, and other matter in the galaxy has angular momentum, so it stays in orbit around the center of the galaxy. It doesn't just fall straight in. This is the same reason the Earth orbits around the Sun. 

*Disclaimer: When you talk about things like tidal forces, you do need to take into account the size of the objects. But for orbital mechanics, we don't need to worry about it because the distances between the objects are generally much larger than the objects themselves.
