Killing of cow and offering its skin as chappals as charity are two different acts or karmas. One does not cancel out the other. You will have to suffer for killing the cow and the charity does not nullify your sin.