fix issue in iOS7 where photos not aligned correctly when swiping between them