Translate z-direction for visualizer