cleans up the php slide loops for getSlides and if the QUERY_STRING is 'zip' then it will write a separate json file for zip.php to read