make --hide-layer case-insensitive