solve the image overlaping issue