Simplify prev/next logic and set activeItem to the first item if nothing is active yet