Electron pair in a Gaussian confining potential