fix ajax gallery load