Preserve layer order when switching viewers.