Made gallery fully worked. Now private flag works