- moved index page scroll trigger into function so it can be readjusted after the final autoplay to account for the page getting bigger