Saving photo gallery previous and next functionality at this point. Will revert back if next experimental attempt is proven to be insufficient.