Just found a plugin that exactly works like you need. You can download it from here and it is completely free as well. https://wordpress.org/plugins/jquery-masonry-image-gallery/. As there is already plugin for this we have stop working for masonry gallery.
However, you can still use our plugin to list your post in masonry grid layout. If you think you don’t need our plugin any more, please do let us know. We will make a full refund for your purchase.