core: add bar layout class