made it possible to show/hide pointer layer