added jquery-ui and gallery comments working with next/prev