If $actives is NULL in carousel, set it at the first element of
$elements.