A function I'm using to resize slides presented in https://github.com/cubiq/SwipeView