Light-induced switch based on edge modes in irradiated thin topological insulators