refactor .slate.js, add universal layout