add borders to pills