update index and gallery