working on ajax response for gallery positions