unified code for slip vectors calculations