It appears there because you are using the Lazy Load feature. And while all images from the gallery are not loaded it may be calculated with small gaps.
And you need to increase the image for one or two pixels to solve the gap when all the gallery is loaded.