snippet to hide player regions