fixed the borders position on all sides

fixed the borders position on all sides with an offsets.