Changed Animation Algorithm : Bugfix #7
Implement New Animate Algorithm- only works in one direction
BugFix- Animation didn't work on dismiss
Optimized margin setting code. Final Bugfix Issues #7 and #8 fixed