working with refinery galleries