calculate carousel's images width