Update layer size in config