The layer height needs to take into account the z-axis motor step angle and threaded rod screw pitch such that the height is a multiple of full steps of the stepper motors. The simplest way to do this is to use the reprap calculator. The calculator can also help you with your X & Y steps per mm and acceleration settings.