#6 ajax working with conditionnal output and gallery class active implemented