adjusted top/bottom z positions