Make heartbeat effect smoother