The method for displacement correction along the slow axis of optical coherence tomography (OCT) data volumes is presented. The method is based on the recursive replacement of the next displaced OCT measurements by the weighted summation of itself and the previous OCT measurement in the slow axis dimension already corrected for the displacement. The values of the appropriate weight multipliers were defined from the local correlation of the two measurements. The proposed method was used as a preprocessing step for optical coherence angiography processing of the OCT data. A substantial reduction of the motion-induced stripe artifact was demonstrated.