fix for custom z-index, add hide_hard