I resolved the first issue by editing this line from actions_index.html
{if $smarty.foreach.myLoop.index % 5 == 0 && $smarty.foreach.myLoop.index != 0}
I replaced the 5 with a 4
You also have to do the same with action_search.html and action_genre.html