Docker network connect all containers

Hello, I have a question I have over 100 containers on my server and I have them connected to the network via ipvlan everything works perfectly but I’m running out of addresses from the subnet and I need to increase the mask the problem is that I have to disconnect all the containers from the network and then reconnect them all one by one so I have a question is there any way to connect all the containers back in one command after modifying the network.