How I can get accurate altitude

During the flight how I can adjust the altitude ? usually i have shift around 6 meters above or below

any suggestion? , noting that i use the airspeed sensor