hide dialog when click shadow img