Longshore dispersion over a flat beach