Multi-group dynamic quantum secret sharing with single photons