updating layout on shadowbox