fixed problem hiding layer opacity slider.
Merge pull request #128 from DavidSpriggs/fix/toc-show-hide-layer-slider

fixed problem hiding layer opacity slider.