Absorption oscillations due to the size effect in thin metallic films