add borders around beyond and media sections