You can lock a layer to prevent it from being hidden and unlock a layer to hide it.
A lock icon in the Layers panel indicates that a layer is to be used for reference only. To lock or unlock a layer:
1. Right-click on a layer you want to lock or unlock.
2. Click Properties.
3. Check or uncheck the Locked checkbox.