Setting timeout for the contact border errors and changing layout of portfolio