added close button to galleries