Made the borders resize based on percentage