remove old div tags from galleries