Need to take states in confidence on cow slaughter: Rajnath