Make gridLayer inactive when not attached