Scattering of a particle with internal structure from a single slit