fix overlapping images and reveal modal for ios