Turned slide.m into a function to fix clash with the use of 'delta_angle'.
Need to make changes to correctShift