hide link cards when modal is shown