Prevent links from overflowing page boundaries