clicking by moving z-axis