You'll always get algae. I also used bristlenose plecos, snails, shrimp, and otocinclus catfish to get rid of algae, but they'll also produce their own waste you have to take care of. You could also get a uv sterilizer, but I don't know much about those other than they can help prevent algae.
Late reply.I got some plants from a friend, I noticed the tank had a few black algae on the plants still I'm the tank how do I avoid getting that algae in my tank