almost smooth switching between layers