resizing keeps the selected card centered