update images gallery layout