load visible elements on load, margin param added, bug fixes