private void positionThumbs(List<ImageButton> thumbs) { for(int i = 0; i < thumbs.Count; i++) { ImageButton thumb = thumbs[i]; thumb.setPosition(new Vector2(200 * (i % THUMBROWSIZE), (float)Math.Floor((i / 8f)) * 120 + 600)); } }