refactored code in index of listings and fixed carousel bug for listings