working save/load layer offset