Deceleration and trapping of ammonia molecules in a traveling