Calculation of the giant dipole resonance in a 1p-1h continuum shell-model approximation for 208Pb