We can use a plugin like Masonary to grab a set of images and create a tiled image gallery. But most of the time the bottom of the gallery will not be a straight line. How can we make sure the images are fit perfectly so that the bottom is straight like shown in this image :
Try the Justified Gallery. It has good animations and you can control it. It is straight.