Only change node if current node slug is different from the new slug