adds ajax loading galleries' images