Threshold effects in slepton pair production at the LHC