fixed a problem with the gallery paging, updated precheck.php to actual version