Longitudinal and transverse contributions to the threshold cross-section slope of single-pion electroproduction by a proton