bugfix: iteration over slice pixels was wrong