modified gallery ajax and add url preview