editor.py : refactoring dimensions