close and magnify the image