retry gallery formatting