Working on prev/next functionality with mixed files.