gallery managing implemented