get_gallery_attachment_ids()); if ( $attachment_count > 1 ) { $span_size = 5; } else { $span_size = 4; } ?>