Create hideCategoryLayers method

Create hideCategoryLayers method to hide all layers when criteria is changed.