prev next links on carousel now function properly