renders rows and thumbs dynamically