convert slope to vertex group weight