encapsulate isotope layout logic