use custom menu and use first frame size

due to mismatch of size from site and image itself
use the size of first fram to generate gif