Set flow layout to image gallery