fix bug with adding items to a new gallery from an item page