adding subcategory name to class of surrounding div