Create title div in each card based on data-title attribute