sliding panel + refactor map