close the gallery (esc)