adds gallery preview plugin