Updated the gallery layout