Fix bug in gallery add_item with sliding uploaded image