modal script almost done, cannot select img inside gallery box