Also, GPS is inherently less accurate in altitude than lateral measurement. It is possible that the update rate on your handheld is a bit slow to keep up with the airplane movement, and altitude errors are the result.
Try putting the GPS in 2-D nav mode with the current altitude (corrected to sea level pressure, if possible) preset, and see what it does...