Filter out the non-visible categories passed to the article layout