when move along z direction, move the camera as well