Code written to solve issue of border coming of unequal size.