fixes for the snaps, margins and custom scrollbars