In VE -> Insert Media.
In Media settings box enter 'search'(or Search with a capital S - so the results are matching the screenshot). The first row of images will not display upper borders. Browser - Chrome and it's happening with View-Actual size. If the scale is increased - the borders are visible.