Collective modes in superconducting films with a periodic modulation of the order parameter