Scroll to thumbnail when shrinking an expanded image