Reset array keys in files array. Back and forth buttons weren't working with only 2 pages.