fixed border overlap
fixes #1: elements can't move out of groups