There might be a problem now that mootools.js is included twice on the page (once from ajaxsearch and another one from maxigallery). If they are different versions, that causes problems. I’m not sure what version ajaxsearch uses and if it works with slimbox, but you can try by adding &disable_js_libs=`1` to maxigallery call. That tells maxigallery not to include mootools on the page.