Removed slice()

slice() was the reason for the slower performance and hence I have removed the statement.