Ashley Williams provided a welcome boost for the hospital-bound Francesco Guidolin, with the Swansea captain scoring the winning goal against Arsenal.