gengrid: fix item looping in case of horizontal mode
gengrid: fix item looping in case of horizontal mode

This mistake is done in a8afaebf3109f1cb8e397e29

rvandegrift/elementary,rvandegrift/elementary,rvandegrift/elementary,rvandegrift/elementary