You would need to edit
this modification, making use of
</tr> and
<tr> HTML tags in the while loop to split the one row into multiple rows. It'd probably be easier to make the edits to the photoplog_thumbs_vert.php file and alter the content of the $photoplog_table_content variable based on the PHP % arithmetic operation, and of course increase the query limit so you get more than five results.