Compensation of vibration of machine base due to slide movement