bootstrap_photo_matrix(), bootstrap_carousel(): finalize code refactoring; add documentation