created the show action to show all categories a category and the pictures in each category