In order to create a screenshot of a program with a virtually larger resolution change the resolution with xrandr as follows
# set large screen 2560 is width and 10000 is the height
xrandr --output HDMI-1 --rate 60 --mode 2560x1440 --panning 2560x10000
# make screenshot and
# set back to normal
xrandr --output HDMI-1 --rate 60 --mode 2560x1440 --panning 2560x1440