Add synchronisation for layer resising