How to Automatically Get the Size of Many Layers