handle gallery yml config