skip the lightbox arrow/navigation if the last/first image
pagination support
lightbox size calculation fixed an proper margin for ifs mode configured