Glitch in Canvas with Sync width and height

Hi there! I’m trying to keep the width and height in sync for several images. After resizing the first image and syncing the canvas width of all images matches perfectly, but the height ends up too large. Could you help me figure out what might be causing the mismatch and how to fix it? Thanks