add gem will paginate and add it to gallery