adding slides php codes & fixing errors