layerSpec with flat layers structure vs layerSpec with grouped layers