hiding categories when the page is loading