close gallerywindow