add friendly gem and models for galleries