call window with data-slug instead of id and add autoscroll when needed