fixed wrong slide dimensions calculation