added in ajax to gallery