reimplement 'top' and 'bottom' layout dictionary options