Change how slide data is accessed in carousel directive to allow for broader use of it in custom templates