fixing the side-by-side images bug