CASE: how to use {% if forloop.first %} and/or {% if forloop.last %}