Fix for different images number in last miniature group