Removed callback function from gallery jquery.