CSS and layout update

Well, maybe you can do the prev in the same way you are doing next:

    {% assign n=forloop.index0 | minus:1 %}

And then you don't need to use a temp variable. Or does `|minus` not work?