carousel() call moved to a directive