optimize border property in css