Buggy but working bordered layout