add gradle file for sample; fix sample app; move thumbs user moves between thumbs