Sorry if this is old but I just found a solution.
Try setting the font-size
to 0. Thus the white-spaces in between the images will be 0 in width, and the images won’t be affected.
Don’t know if this works in all browsers, but I tried it with Chromium and some <li>
elements with display: inline-block;
.