move gap property out of the priorities object; share gap between elements on the same level; save gap in local storage