Added a hide custom layers functionality