loading gallery data from the Server